package com.xuegao.xuegaololskills.swing;

import javax.swing.*;

public class DemoKeyEvent {


    public static void main(String[] args) {
        JFrame frame = new MyFrame("Swing Demo");

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.setSize(500, 400);// 设置窗口的其他参数，如窗口大小

        frame.setVisible(true);// 显示窗口

    }

}